/**
 * Generate time : 2011-11-15 2:50:20
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cl.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCLRiskModify table comment : 安全隐患整改记录
 */
public class ZMCLRiskModify extends DaoEPBase {

	private String fdKeyId = " "; /* 主键 */
	private String fdRiskRecordId = " "; /* 隐患记录ID */
	private String fdRiskHandleId = " "; /* 隐患处理ID */
	private String fdFeedback = " "; /* 整改反馈 */
	private String fdFeedbackDate = " "; /* 反馈日期 */
	private String fdFeedbackPeopleId = " "; /* 反馈人ID */
	private String fdFeedbackPeople = " "; /* 反馈人 */
	private String fdCreateTime = " "; /* 创建时间 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRiskRecordId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("隐患记录ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRiskHandleId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("隐患处理ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFeedback");
		eiColumn.setFieldLength(1000);
		eiColumn.setDescName("整改反馈");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFeedbackDate");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("反馈日期");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFeedbackPeopleId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("反馈人ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFeedbackPeople");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("反馈人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdCreateTime");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("创建时间");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCLRiskModify() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - 主键
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdRiskRecordId - 隐患记录ID
	 * 
	 * @return the fdRiskRecordId
	 */
	public String getFdRiskRecordId() {
		return this.fdRiskRecordId;
	}

	/**
	 * set the fdRiskRecordId - 隐患记录ID
	 */
	public void setFdRiskRecordId(String fdRiskRecordId) {
		this.fdRiskRecordId = fdRiskRecordId;
	}

	/**
	 * get the fdRiskHandleId - 隐患处理ID
	 * 
	 * @return the fdRiskHandleId
	 */
	public String getFdRiskHandleId() {
		return this.fdRiskHandleId;
	}

	/**
	 * set the fdRiskHandleId - 隐患处理ID
	 */
	public void setFdRiskHandleId(String fdRiskHandleId) {
		this.fdRiskHandleId = fdRiskHandleId;
	}

	/**
	 * get the fdFeedback - 整改反馈
	 * 
	 * @return the fdFeedback
	 */
	public String getFdFeedback() {
		return this.fdFeedback;
	}

	/**
	 * set the fdFeedback - 整改反馈
	 */
	public void setFdFeedback(String fdFeedback) {
		this.fdFeedback = fdFeedback;
	}

	/**
	 * get the fdFeedbackDate - 反馈日期
	 * 
	 * @return the fdFeedbackDate
	 */
	public String getFdFeedbackDate() {
		return this.fdFeedbackDate;
	}

	/**
	 * set the fdFeedbackDate - 反馈日期
	 */
	public void setFdFeedbackDate(String fdFeedbackDate) {
		this.fdFeedbackDate = fdFeedbackDate;
	}

	/**
	 * get the fdFeedbackPeopleId - 反馈人ID
	 * 
	 * @return the fdFeedbackPeopleId
	 */
	public String getFdFeedbackPeopleId() {
		return this.fdFeedbackPeopleId;
	}

	/**
	 * set the fdFeedbackPeopleId - 反馈人ID
	 */
	public void setFdFeedbackPeopleId(String fdFeedbackPeopleId) {
		this.fdFeedbackPeopleId = fdFeedbackPeopleId;
	}

	/**
	 * get the fdFeedbackPeople - 反馈人
	 * 
	 * @return the fdFeedbackPeople
	 */
	public String getFdFeedbackPeople() {
		return this.fdFeedbackPeople;
	}

	/**
	 * set the fdFeedbackPeople - 反馈人
	 */
	public void setFdFeedbackPeople(String fdFeedbackPeople) {
		this.fdFeedbackPeople = fdFeedbackPeople;
	}

	/**
	 * get the fdCreateTime - 创建时间
	 * 
	 * @return the fdCreateTime
	 */
	public String getFdCreateTime() {
		return this.fdCreateTime;
	}

	/**
	 * set the fdCreateTime - 创建时间
	 */
	public void setFdCreateTime(String fdCreateTime) {
		this.fdCreateTime = fdCreateTime;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdRiskRecordId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRiskRecordId")), fdRiskRecordId));
		setFdRiskHandleId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRiskHandleId")), fdRiskHandleId));
		setFdFeedback(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFeedback")), fdFeedback));
		setFdFeedbackDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFeedbackDate")), fdFeedbackDate));
		setFdFeedbackPeopleId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFeedbackPeopleId")), fdFeedbackPeopleId));
		setFdFeedbackPeople(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFeedbackPeople")), fdFeedbackPeople));
		setFdCreateTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreateTime")), fdCreateTime));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdRiskRecordId", StringUtils.toString(fdRiskRecordId, eiMetadata.getMeta("fdRiskRecordId")));
		map.put("fdRiskHandleId", StringUtils.toString(fdRiskHandleId, eiMetadata.getMeta("fdRiskHandleId")));
		map.put("fdFeedback", StringUtils.toString(fdFeedback, eiMetadata.getMeta("fdFeedback")));
		map.put("fdFeedbackDate", StringUtils.toString(fdFeedbackDate, eiMetadata.getMeta("fdFeedbackDate")));
		map.put("fdFeedbackPeopleId", StringUtils.toString(fdFeedbackPeopleId, eiMetadata.getMeta("fdFeedbackPeopleId")));
		map.put("fdFeedbackPeople", StringUtils.toString(fdFeedbackPeople, eiMetadata.getMeta("fdFeedbackPeople")));
		map.put("fdCreateTime", StringUtils.toString(fdCreateTime, eiMetadata.getMeta("fdCreateTime")));

		return map;

	}
}